<template>
  <div>
    <div @click="login">首页</div>
    <hello-world></hello-world>
  </div>
</template>

<script>
import HelloWorld from '@/components/HelloWorld'
export default {
  name: 'index',
  components: { HelloWorld },
  methods: {
    login() {
      this.$router.push('/login')
    }
  }
}
</script>

<style scoped></style>
